<template>
  <div class="con">
    <div class="left">
      <el-menu
        router
        default-active="/user/student"
        class="el-menu-vertical-demo"
      >
        <el-menu-item index="/student">
          <i class="el-icon-menu"></i>
          <span slot="title">学员管理</span>
        </el-menu-item>
        <el-menu-item index="/teacher">
          <i class="el-icon-document"></i>
          <span slot="title">老师管理</span>
        </el-menu-item>
        <el-menu-item index="/helper">
          <i class="el-icon-setting"></i>
          <span slot="title">助教管理</span>
        </el-menu-item>
      </el-menu>
    </div>
    <div class="right"><router-view></router-view></div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang="scss">
.con {
  display: flex;
  width: 100%;
  .left {
    width: 200px;
  }
  .right {
    flex: 1;
  }
}
</style>
